package com.zhoug.ocr.textin.http;


import com.zhoug.ocr.textin.data.BusinessResult;
import com.zhoug.ocr.textin.data.FormResult;
import com.zhoug.ocr.textin.data.VatInvoiceResult;
import com.zhoug.ocr.textin.data.bill.BillResult;
import com.zhoug.ocr.textin.http.core.TextInResponse;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.Url;

/**
 * @Author: zhoug
 * @Date: 2023/2/20
 * @Description:
 */
public interface TextInHttpRequests {
    //通用表格识别
    @POST()
    Observable<TextInResponse<FormResult>> recognitionForm(@Url String url, @Query("output_order") String output_order,
                                                           @Body RequestBody requestBody);
    //增值税发票识别
    @POST()
    Observable<TextInResponse<VatInvoiceResult>> recognitionVatInvoice(@Url String url, @Body RequestBody requestBody);

    //营业执照识别
    @POST()
    Observable<TextInResponse<BusinessResult>> recognitionBusinessLicense(@Url String url, @Body RequestBody requestBody);

    //通用表格识别 私有化部署接口
    @POST()
    Observable<FormResult> recognitionFormLocal(@Url String url, @Query("output_order") String output_order,
                                                @Body RequestBody requestBody);

    //国内通用票据识别
    @POST()
    Observable<TextInResponse<BillResult>> recognitionBill(@Url String url, @Body RequestBody requestBody);


}
